package com.futureCloudMOM.core.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.futureCloudMOM.common.annotation.Condition;
import com.futureCloudMOM.core.entity.FBaseEntity;
import com.futureCloudMOM.framework.dict.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Basic_ProcessAction", description = "工序活动表")
@TableName(value = "Basic_ProcessAction")
public class BasicProcessAction extends FBaseEntity implements Serializable {



    @NotNull(message="[工序ID]不能为空")
    @ApiModelProperty("工序ID")
    @TableField(value = "processId")
    @Condition
    @Dict(dictCode = "id",dictTable = "Basic_process",dictText = "name")
    private Long processId;

    @NotBlank(message="[工序活动名称]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("工序活动名称")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "actionName")
    private String actionName;

    @NotBlank(message="[工序活动编码]不能为空")
    @Size(max= 500,message="编码长度不能超过500")
    @ApiModelProperty("工序活动编码")
    @Length(max= 500,message="编码长度不能超过500")
    @TableField(value = "actionCode")
    private String actionCode;

    @NotNull(message="[状态]不能为空")
    @ApiModelProperty("状态")
    @TableField(value = "status")
    @Dict(dictCode = "sys_normal_disable")
    private Long status;

    @NotNull(message="[工序活动单价/或作为比重来使用]不能为空")
    @ApiModelProperty("工序活动单价/或作为比重来使用")
    @TableField(value = "actionPriceOne")
    private Long actionPriceOne;






}

